import request from '@/config/request.js';

// 用户注册发送短信
export const sendMassage = (data) => request.post(`/gscloud_user/ua/user/register/sendMassage?mobile=${data.mobile}`)

// 通过手机号登录注册
export const regorlogin = (data) => request.post(`/gscloud_user/ua/user/register/regorlogin?mobile=${data.mobile}&sysType=${data.sysType}&verifyCode=${data.verifyCode}`)

// 获取用户信息
export const getInfo = () => request.get('/getInfo')

// 新增骑手入驻
export const barRiderSave = (data) => request.post('/gscloud_platform/ua/barRiderRegister/save', data)

// 修改骑手入驻
export const barRiderUpdate = (data) => request.put('/gscloud_platform/platform/barRider/update', data)

// 根据参数查询骑手订单列表和分页数据/gscloud_platform/platform/barRiderOrder/getById
export const barRiderOrderPage = (data) => request.get('/gscloud_platform/platform/barRiderOrder/page', data)

// 根据主键ID查询骑手订单数据
export const getById = (data) => request.get('/gscloud_platform/platform/barRiderOrder/getById', data)

// 获取骑手信息
export const getByUserId = (data) => request.get('/gscloud_platform/platform/barRider/getByUserId', data)

// 根据主键ID骑手接单
export const riderAcceptById = (data) => request.get('/gscloud_platform/platform/barRiderOrder/riderAcceptById', data)

// 根据主键ID骑手取货
export const riderPickById = (data) => request.get('/gscloud_platform/platform/barRiderOrder/riderPickById', data)

// 派送完成
export const deliverySuccess = (data) => request.get('/gscloud_platform/platform/barRiderOrder/deliverySuccess', data)